/**
 * 作者: wgx
 * 日期: 2024-10-15 14:05:15
 * 备注: 技能升级的消耗数量配置表
 */
package com.motu.monstercity.server.game.commondata.skill;

import io.vertx.core.json.JsonObject;

public class SkillUpgradeTypeModel {
    protected int id; // 数据库ID
    protected int upgradeType; // 升级类型
    protected int level; // 等级
    protected long consume; // 升级对应消耗的道具数量

    public SkillUpgradeTypeModel() {
    }

    public SkillUpgradeTypeModel(JsonObject obj) {
        id = obj.containsKey("id") ? obj.getInteger("id") : 0;
        upgradeType = obj.containsKey("upgrade_type") ? obj.getInteger("upgrade_type") : 0;
        level = obj.containsKey("level") ? obj.getInteger("level") : 0;
        consume = obj.containsKey("consume") ? obj.getLong("consume") : 0;
    }

    public int getId() {
        return id;
    }

    public int getUpgradeType() {
        return upgradeType;
    }

    public int getLevel() {
        return level;
    }

    public long getConsume() {
        return consume;
    }

}
